package com.zhuang.exception;

public enum CustomizeErrorCode {
     QUESTION_NOT_FOUND(2001, "您找的资源不存在，换一个试试！"),
     TARGET_PARAM_NOT_FOUND(2002, "未选中任何问题或者评论进行回复！"),
     NOT_LOGIN(2003, "用户未登录，请先登录！"),
     SYS_ERROR(2004, "服务器冒烟了，换个姿势试试！"),
     TYPE_PARAM_WRONG(2005, "评论类型有错误！"),
     COMMENT_PARENTID_NOT_FOUND(2006, "父评论不存在"),
     QUESTION_PARENTID_NOT_FOUND(2007, "父问题不存在"),
     COMMENT_CONTENT_ISEMPTY(2008, "评论内容为空"),
     IMAGE_ISEMPTY(400, "图片内容为空 ！"),
     IMAGE_UPLOAD_ERROR(500, "图片内容为空 ！"),
    ;

     private String message;
     private Integer code;


    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

    CustomizeErrorCode(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
